//
//  SetUpHeaderView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/28.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "SetUpHeaderView.h"

@interface SetUpHeaderView ()
@property (nonatomic,strong) GLGWImageView * headerImageView;
@property (nonatomic,strong) GLGWLabel * companyLabel;
@property (nonatomic,strong) GLGWLabel * phoneLabel;

@end

@implementation SetUpHeaderView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor whiteColor];
        self.headerImageView = [[GLGWImageView alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(15), kHeightProportion_In_iPhoneTriploid(30), kWidthProportion_In_iPhoneTriploid(60), kWidthProportion_In_iPhoneTriploid(60)) inSuperView:self];
        self.headerImageView.backgroundColor = kRandomColor;
        self.headerImageView.layer.cornerRadius = kHeightProportion_In_iPhoneTriploid(30);
        self.headerImageView.layer.masksToBounds = YES;
        //
        self.companyLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(kX_With_View(self.headerImageView, 15), kHeightProportion_In_iPhoneTriploid(35), KScreenWidth - kX_With_View(self.headerImageView, 30), kHeightProportion_In_iPhoneTriploid(22)) theFont:BOLDSYSTEMFONT(16) theColor:kColor_Rule_Black inSuperView:self];
        self.companyLabel.text = @"北京泽人合有限公司";
//        self.companyLabel.backgroundColor = kRandomColor;
        //
        self.phoneLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(self.companyLabel.x, kY_With_View(self.companyLabel, 7), self.companyLabel.width, kHeightProportion_In_iPhoneTriploid(20)) theFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#666666"] inSuperView:self];
        self.phoneLabel.text = @"186****0000";
    }
    return self;
}

@end
